package com.lonely.purchase.domain.dto.materialpurchase;

import com.lonely.common.core.domain.UploadFile;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 扣损补料请求实体
 *
 * @author fzzf
 */
@Data
public class DeductionReplenishDTO implements Serializable {

    /**
     * 采购id
     */
    @NotNull(message = "id不能为空")
    private Long id;

    /**
     * 异常类型
     */
    @NotNull(message = "异常类型不能为空")
    private Integer failType;

    /**
     * 扣损数量
     */
    private String deductionQuantity;

    /**
     * 补料数量
     */
    private String replenishQuantity;

    /**
     * 异常备注
     */
    @NotBlank(message = "异常备注不能为空")
    private String failRemark;

    /**
     * 附件
     */
    private List<UploadFile> attachments;
}
